package com.imooc.productviewservicefeign2.client;

import com.imooc.productviewservicefeign2.pojo.product;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @program: springcloud_demo
 * @description:
 * @author: ZhangKai
 * @create: 2019-09-19 22:12
 **/
@Component
public class productclientfeignyystrix implements productclientfeign{

    @Override
    public List<product> listProducts() {
        List<product> result = new ArrayList<>();
        result.add(new product(0,"产品数据微服务不可用",0));
        return result;
    }
}
